﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TheoDoiTiengDoDeTai.ascx.cs" Inherits="QuanLyDeTaiKHCN.UserControls.Manager.TheoDoiTiengDoDeTai" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="udt1" runat="server">
    <ContentTemplate>
        <div class="control-group info row-fluid">
            <asp:panel ID="pntcontent" runat="server">
            <fieldset style="width:100%;">
                <legend>Thông tin giai đoạn thực hiện đề tài</legend>
                <label class="control-label" style="padding-right: 10px;">Chọn giai đoạn</label>
                <div class="controls">
                    <asp:DropDownList ID="drlGiaiDoan" runat="server" CssClass="span3 height" AutoPostBack="true" OnSelectedIndexChanged="drlGiaiDoan_SelectedIndexChanged"></asp:DropDownList>
                    <span style="color:#3A87BE;">&nbsp;Thời gian thực hiện từ ngày&nbsp;</span>
                    <asp:TextBox ID="txtThoiGianThucHienTu" runat="server" CssClass="span2" ReadOnly="true"></asp:TextBox>
                    <span style="color:#3A87BE;">&nbsp;Đến ngày&nbsp;</span>
                    <asp:TextBox ID="txtThoiGianThucHienDen" runat="server" CssClass="span2" ReadOnly="true"></asp:TextBox>
                    <span style="color:#3A87BE;">&nbsp;Kinh phí&nbsp;</span>
                    <asp:TextBox ID="txtKinhPhi" runat="server" CssClass="span2" ReadOnly="true"></asp:TextBox>
                </div>
                <div style="height:5px;"></div>
                <label class="control-label" style="padding-right: 10px;">Số biên bản kiểm tra</label>
                <div class="controls">
                    <asp:TextBox ID="txtSoBienBanKiemTra" runat="server" CssClass="span2"></asp:TextBox>
                    <span style="color:#3A87BE;">&nbsp;Ngày kiểm tra&nbsp;</span>
                    <asp:TextBox ID="txtNgayKiemTra" placeholder="Ngày/tháng/năm" runat="server" CssClass="span2" onblur="KiemTraInjection(this);"></asp:TextBox>
                    <asp:ImageButton runat="Server" ID="Image1" ImageUrl="~/CSS/images/lich.gif" AlternateText="Click để hiển thị ngày tháng năm" />
                    <ajaxToolkit:CalendarExtender ID="calendarButtonExtender2" runat="server" TargetControlID="txtNgayKiemTra" PopupButtonID="Image1" Format="dd/MM/yyyy" />
                    <div style="text-align:right;float:right;padding-right:5px;">
                        <asp:Label ID="lbltrehan" runat="server" ForeColor="Red" Font-Bold="true" Text=""></asp:Label>
                    </div>
<%--                    <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender2" MaskType="Date" runat="server" Mask="99/99/9999" TargetControlID="txtNgayKiemTra"></ajaxToolkit:MaskedEditExtender>--%>
                </div>
                <div style="height:5px;"></div>
                <label class="control-label" style="padding-right: 10px;">Nội dung kiểm tra</label>
                <div class="controls">
                    <asp:TextBox ID="txtNoiDungKiemTra" runat="server" CssClass="span12" onblur="KiemTraInjection(this);" TextMode="MultiLine" Height="30"></asp:TextBox>
                </div>
                <div style="height:5px;"></div>
                <label class="control-label" style="padding-right: 10px;">Kết quả kiểm tra</label>
                <div class="controls">
                    <asp:TextBox ID="txtKetQuaKiemTra" runat="server" CssClass="span12" onblur="KiemTraInjection(this);" TextMode="MultiLine" Height="30"></asp:TextBox>
                </div>
                <div style="height:5px;"></div>
                <label class="control-label" style="padding-right: 10px;"></label>
                <div class="controls">
                    <asp:LinkButton ID="btnsave" class="btn btn-primary" OnClick="btnsave_Click" runat="server"><i class=" icon-save"></i>&nbsp;&nbsp;Lưu</asp:LinkButton>
                <asp:Label ID="lblstatus" runat="server" ForeColor="Red"></asp:Label>
                </div>
                <div style="height:5px"></div>
            </fieldset>
            <fieldset>
                <legend>File đính kèm</legend>
                <label class="control-label" style="width: 250px; padding-right: 10px;">Chọn file</label>
                <div class="controls">
                    <asp:FileUpload ID="filebienban" runat="server" />
                </div>
                <div style="height: 5px;"></div>
                <label class="control-label" style="width: 250px; padding-right: 10px;">Trích yếu</label>
                <div class="controls">
                    <asp:TextBox ID="txtghichufilethuyetminh" runat="server" TextMode="MultiLine" Height="50" CssClass="span6" onblur="KiemTraInjection(this);"></asp:TextBox>
                </div>
                <div style="height: 5px; clear: both"></div>
                <label class="control-label" style="width: 250px; padding-right: 10px;">Ngày</label>
                <div class="controls">
                    <asp:TextBox ID="txtNgayNhan" placeholder="Ngày/tháng/năm" runat="server" CssClass="span2" onblur="KiemTraInjection(this);"></asp:TextBox>
                    <asp:ImageButton runat="Server" ID="ImageButton14" ImageUrl="~/CSS/images/lich.gif" AlternateText="Click để hiển thị ngày tháng năm" />
                    <ajaxToolkit:CalendarExtender ID="CalendarExtender16" runat="server" TargetControlID="txtNgayNhan" PopupButtonID="ImageButton14" Format="dd/MM/yyyy" />
                    <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender7" MaskType="Date" runat="server" Mask="99/99/9999" TargetControlID="txtNgayNhan"></ajaxToolkit:MaskedEditExtender>
                </div>
                <div style="height: 5px;"></div>
                <label class="control-label" style="width: 250px; padding-right: 10px;"></label>
                <div class="controls">
                    <asp:LinkButton ID="LinkAddFile" class="btn btn-primary" runat="server" OnClick="LinkAddFile_Click"><i class="icon-file-alt"></i>&nbsp;&nbsp;Thêm</asp:LinkButton>
                    <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
                </div>
                <div style="height: 5px;"></div>
                <div style="height: 5px; clear: both;"></div>
                <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" ForeColor="#333333" OnRowDeleting="grid_RowDeleting">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:TemplateField HeaderText="Trích yếu">
                            <ItemTemplate>
                                <%#Eval("TrichYeu") %>
                                <asp:Label ID="lblFileName" runat="server" Visible="false" Text='<%#Eval("FileThuyetMinh") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Ngày">
                            <ItemTemplate>
                                <%#Eval("NgayLuu") %>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="true" HeaderText="Xóa">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" Text="<i class='icon-remove red'></i> Xóa"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="true" HeaderText="Xem">
                            <ItemTemplate>
                                <%--<a href='<%="./?mod="+_ps.Encrypt("Xem_online_hoso","gold",128)+"&id="+Request.QueryString["id"]%>&linkonline=<%#Eval("Fileonline")%>' title="Chọn để xem nội dung"><i class='icon-folder-open-alt'></i>&nbsp;Xem</a>--%>
                                <a href='<%#QuanLyDeTaiKHCN.Obj_class.PageURL.local+"filehoso/"+Eval("FileThuyetMinh")%>'title="Chọn để xem nội dung"><i class='icon-folder-open-alt'></i>&nbsp;Xem</a>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
            </fieldset>
                </asp:panel>
            <div style="width:100%;text-align:center;"><asp:Label ID="lblmessage" runat="server" ForeColor="Red"></asp:Label></div>
        </div>
    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="LinkAddFile" />
    </Triggers>
</asp:UpdatePanel>